﻿namespace VersionStar.App.Utilities
{
    public class StringTools
    {
        public static string GetBetween(string source, string start, string end)
        {
            if (source.Contains(start) && source.Contains(end))
            {
                int startPos = source.IndexOf(start, 0) + start.Length;
                int endPos = source.IndexOf(end, startPos);
                return source.Substring(startPos, endPos - startPos);
            }
            else
            {
                return string.Empty;
            }
        }
    }
}